package com.repair.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.repair.dto.RepairStoreDto;
import com.repair.entity.RepairStore;
import com.repair.param.RepairStoreAddParam;
import com.repair.param.RepairStoreFindParam;
import com.repair.param.RepairStoreStateParam;
import com.repair.param.RepairStoreUpdateParam;
import com.repair.util.PageInfo;

/**
 * <p>
 * 维修材料库存表 服务类
 * </p>
 *
 * @author 小叶
 * @since 2024年04月03日
 */
public interface RepairStoreService extends IService<RepairStore> {

    //新增维修材料
    RepairStore add(RepairStoreAddParam toBean);

    //修改维修材料信息
    RepairStore updateRepairStore(RepairStoreUpdateParam toBean) throws InterruptedException;

    //修改维修材料状态
    RepairStore changeState(RepairStoreStateParam param);

    //根据id查询维修材料信息
    RepairStore findById(Integer id);

    //维修员条件查询维修材料信息
    PageInfo<RepairStoreDto> repairFind(RepairStoreFindParam param);
}
